<div class="soubg">
	<div class="sou">
        <span class="fr">
        	<span class="fl">
                <empty name="username">
                    你好，请<a href="{:U('Home/Login/index')}">登录</a>&nbsp; <a href="{:U('Home/User/Regist')}" style="color:#ff4e00;">免费注册　</a>
                <else />
                    你好&nbsp;{$username}&nbsp;<a href="{:U('Home/index/tuichu')}">退出</a>
                </empty> 
            <a href="{:U('Home/member/index')}">&nbsp;|个人中心</a>&nbsp;|
            </span>
        	　<span class="ss">
            	<div class="ss_list">
                	<a href="#">收藏夹</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="{:U('Home/member/Member_Collect')}">我的收藏夹</a></li>
                            </ul>
                        </div>
                    </div>     
                </div>
                <div class="ss_list">
                	<a href="#">客户服务</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                                <li><a href="#">客户服务</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
                <div class="ss_list">
                	<a href="#">网站导航</a>
                    <div class="ss_list_bg">
                    	<div class="s_city_t"></div>
                        <div class="ss_list_c">
                        	<ul>
                            	<li><a href="#">网站导航</a></li>
                                <li><a href="#">网站导航</a></li>
                            </ul>
                        </div>
                    </div>    
                </div>
            </span>
            <span class="fl">|&nbsp;关注我们：</span>
            <span class="s_sh"><a href="#" class="sh1">新浪</a><a href="#" class="sh2">微信</a></span>
            <span class="fr">|&nbsp;<a href="#">手机版&nbsp;<img src="__PUBLIC__/images/s_tel.png" align="absmiddle" /></a></span>
        </span>
    </div>
</div>
<div class="top">
    <div class="logo"><img src="__PUBLIC__/images/logo.jpg" width="200" height="60" /></div>
     <div class="search">
      <form method="get" action="{:U('home/list/seach')}">
          <input type="text" name="seach" class="s_ipt" />
            <input type="submit" value="搜索" class="s_btn" />
        </form>                      
    </div>
    <!-- onmouseover="mouserover('user')"  [ <span>3</span> ] -->
    <div class="i_car" >
    	<div class="car_t" >购物车</div>
        <div class="car_bg">
       	
        <php>
        {/* 购物车--2017_1_23*/ }
          <literal>
              if($_SESSION['user']['id']){
                 $buycar = M('buycar');
                 $map['uid'] = ['eq',session('user')['id']];
                 $blist = $buycar->where($map)->select();
                  echo ' <ul class="cars">';
                 foreach($blist as $blist){
                    echo '
                          <li>
                          <div class="img"><a href="#"><img src="/TP/Uploads/comm/'.$blist['goodspic'].'" width="58" height="58" /></a></div>
                            <div class="name"><a href="#">'.$blist['goodsname'].'</a></div>
                            <div class="price"><font color="#ff4e00">'.$blist['price'].'￥</font> X'.$blist['number'].'</div>
                          </li>
        
                      ';
                 }
                echo '  </ul>';
              }else{
                 echo '<div class="un_login">还未登录<a href="/TP/Home/Login/index.html" style="color:#ff4e00;">马上登录</a> 查看购物车！</div>';
              }
          </literal>
        </php>

        </div>
    </div>
</div>
<script>
    // function mouserover(user){
    //     jq.get("{:U('Home/Header/header')}",{'user':user},function(data){
    //       // alert(data);
    //     });
    // }

</script>